<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<body>
	<div th:fragment="nav_web">
		<nav class="navbar navbar-inverse navbar-expand-lg navbar-toggleable-lg bg-primary">
			<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
				aria-label="Toggle navigation">
				<span class="navbar-toggler-icon"></span>
			</button>
			<a th:href="@{'/'}" class="navbar-brand"> <img th:src="@{/image/dhz.ico}" class="rounded-circle" width="30" height="30"> 大猴子
			</a>
			<div class="collapse navbar-collapse" id="navbarSupportedContent">
				<ul class="navbar-nav mr-auto">

					<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">程序猿杂记</a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
							<a class="dropdown-item">编程</a> <a class="dropdown-item">网络</a> <a class="dropdown-item">运维</a><a class="dropdown-item">工具</a><a class="dropdown-item">其它</a>
						</div></li>
					<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <!-- 终身 -->学习
					</a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
							<a class="dropdown-item">讲座</a> <a class="dropdown-item">考证</a> <a class="dropdown-item">资源</a>
						</div></li>
					<li class="nav-item dropdown"><a th:href="@{'/hometown/'}" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">HOMETOWN</a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
							<a th:href="@{'/hometown/'}" class="dropdown-item">茂名</a> <a class="dropdown-item">电白</a>
						</div></li>
					<li class="nav-item dropdown"><a th:href="@{'/hometown/'}" class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">兴趣</a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
							<a th:href="@{'/hometown/'}" class="dropdown-item">阅读</a> <a class="dropdown-item">电影</a>
						</div></li>
					<li class="nav-item"><a th:href="@{'/ArticleCtrl/catalog'}" class="nav-link text-warning"  data-toggle="tooltip" data-placement="bottom" title="Hi就这里可以点">所有文章</a></li>
					<li class="nav-item"><a th:href="@{'/ArticleCtrl/catalog'}" class="nav-link">日记</a></li>
				</ul>
				<!-- <form class="form-inline my-2 my-lg-0">
					<input class="form-control mr-sm-2" type="text" placeholder="搜索">
					<button class="btn btn-outline-success my-2 my-sm-0" type="submit" disabled="disabled">Go</button>
				</form> -->
			</div>
		</nav>
	</div>

	<div th:fragment="nav_admin">
		<div class="row">
			<div class="col-md-12">
				<nav class="navbar navbar-inverse  navbar-toggleable-md bg-primary">
					<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
						aria-label="Toggle navigation">
						<span class="navbar-toggler-icon"></span>
					</button>
					<a class="navbar-brand" href="/ManagerCtrl/">管理端</a>
					<div class="collapse navbar-collapse" id="navbarSupportedContent">
						<ul class="navbar-nav mr-auto">
							<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 用户管理</a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
									<a class="dropdown-item" href="/UserManagerCtrl/addUser" target="self">添加用户</a> <a class="dropdown-item" href="/UserManagerCtrl/pageUser" target="self">用户列表</a>
								</div></li>
							<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 用户角色</a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
									<a class="dropdown-item" href="/UserManagerCtrl/addUser" target="self">添加用户</a> <a class="dropdown-item" href="/UserManagerCtrl/pageUser">用户列表</a> <a class="dropdown-item" href="#">Something
										else here</a>
								</div></li>


							<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 角色管理</a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
									<a class="dropdown-item" href="/AuthorityManagerCtrl/pageRole">角色列表</a> <a class="dropdown-item" href="#">Another action</a> <a class="dropdown-item" href="#">Something else here</a>
								</div></li>
							<li class="nav-item dropdown"><a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> 角色权限</a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
									<a class="dropdown-item" href="/AuthorityManagerCtrl/pageRole">角色列表</a> <a class="dropdown-item" href="#">Another action</a> <a class="dropdown-item" href="#">Something else here</a>
								</div></li>


						</ul>
					</div>
				</nav>
			</div>
		</div>
	</div>


</body>


</html>
